﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CateringCommon;

namespace CateringSystem.PlatForm
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString.Count > 0)
                {
                    string userName = Request.QueryString.Get("UserName");
                    string userPwd = Request.QueryString.Get("UserPwd");
                    if (userName != null && userPwd != null)
                    {
                        if (Common.Login(userName, userPwd, HttpContext.Current))
                        {
                            //登录成功
                        }
                        //TODO：返回登录信息

                    }
                }
            }
        }
    }
}